home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: Q about the float point format......
- Date: 19 Mar 1996 09:57:18 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4imshuINNs22@keats.ugrad.cs.ubc.ca>
- References: <s3032089.15.314E68DD@sparc13.ncu.edu.tw> <4imhl7$jcf@news.xs4all.nl>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4imhl7$jcf@news.xs4all.nl>, Falstaff <falstaff@xs4all.nl> wrote:
- >s3032089@sparc13.ncu.edu.tw (Alexander PeaceLand) writes:
- >
- >
- >> Could I dynamicly set the digits after the float POINT?
-
- [snip]
-
- > i=3; /* or whatever */
- > printf("%.*f",123.456789,i);
- >
- >That should work.
-
- I believe that the i must come before the floating argument.
- --
-
-